package com.bbzn.device.client.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.bbzn.device.client.dataobject.Strategy;
import com.bbzn.device.client.dao.strategy.StrategyMapper;
import java.util.List;
import com.bbzn.device.client.service.StrategyService;

@Service
public class StrategyServiceImpl implements StrategyService {

    @Resource
    private StrategyMapper strategyMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return strategyMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Strategy record) {
        return strategyMapper.insert(record);
    }

    @Override
    public int insertOrUpdate(Strategy record) {
        return strategyMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(Strategy record) {
        return strategyMapper.insertOrUpdateSelective(record);
    }

    @Override
    public int insertSelective(Strategy record) {
        return strategyMapper.insertSelective(record);
    }

    @Override
    public Strategy selectByPrimaryKey(Integer id) {
        return strategyMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Strategy record) {
        return strategyMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Strategy record) {
        return strategyMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Strategy> findByAll(Strategy strategy) {
        return strategyMapper.findByAll(strategy);
    }

    @Override
    public int updateBatch(List<Strategy> list) {
        return strategyMapper.updateBatch(list);
    }

    @Override
    public int updateBatchSelective(List<Strategy> list) {
        return strategyMapper.updateBatchSelective(list);
    }

    @Override
    public int batchInsert(List<Strategy> list) {
        return strategyMapper.batchInsert(list);
    }

    @Override
    public Strategy getStrategy(Strategy strategy) {
        return strategyMapper.getStrategy(strategy);
    }

    @Override
    public Strategy findOneByChannelCode(Long channelCode) {
        return strategyMapper.findOneByChannelCode(channelCode);
    }
}

